﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master" Inherits="System.Web.Mvc.ViewPage<AnalisisDeRiesgos.Models.ConfigurationModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Index</h2>

    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>
        
        <fieldset>
            <legend>Fields</legend>
            <h3>Frecuencias, por favor llene las frecuencias en el siguiente orden (1 es menos frecuente, 5 es el mas frecuente)</h3>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Frequency1) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Frequency1) %>
                <%: Html.ValidationMessageFor(model => model.Frequency1) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Frequency2) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Frequency2) %>
                <%: Html.ValidationMessageFor(model => model.Frequency2) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Frequency3) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Frequency3) %>
                <%: Html.ValidationMessageFor(model => model.Frequency3) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Frequency4) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Frequency4) %>
                <%: Html.ValidationMessageFor(model => model.Frequency4) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Frequency5) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Frequency5) %>
                <%: Html.ValidationMessageFor(model => model.Frequency5) %>
            </div>
            
            <h3>Numero de expuestos, por favor llene los expuestos en el siguiente orden (1 es la menor cantidad de expuestos, 3 es la mayor cantidad de expuestos)</h3>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Exposed1) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Exposed1) %>
                <%: Html.ValidationMessageFor(model => model.Exposed1) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Exposed2) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Exposed2) %>
                <%: Html.ValidationMessageFor(model => model.Exposed2) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Exposed3) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Exposed3) %>
                <%: Html.ValidationMessageFor(model => model.Exposed3) %>
            </div>
            
            <h3>Numero de expuestos, por favor llene los controles en el siguiente orden (1 es la mayor cantidad de controles, 3 es la menor cantidad de controles)</h3>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Controls1) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Controls1) %>
                <%: Html.ValidationMessageFor(model => model.Controls1) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Controls2) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Controls2) %>
                <%: Html.ValidationMessageFor(model => model.Controls2) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Controls3) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Controls3) %>
                <%: Html.ValidationMessageFor(model => model.Controls3) %>
            </div>
            
            <h3>Nivel de severidad, por favor llene los niveles de severidad en el siguiente orden (1 es la menor severidad, 5 es la mayor severidad)</h3>
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Severity1) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Severity1) %>
                <%: Html.ValidationMessageFor(model => model.Severity1) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Severity2) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Severity2) %>
                <%: Html.ValidationMessageFor(model => model.Severity2) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Severity3) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Severity3) %>
                <%: Html.ValidationMessageFor(model => model.Severity3) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Severity4) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Severity4) %>
                <%: Html.ValidationMessageFor(model => model.Severity4) %>
            </div>
            
            <div class="editor-label">
                <%: Html.LabelFor(model => model.Severity5) %>
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.Severity5) %>
                <%: Html.ValidationMessageFor(model => model.Severity5) %>
            </div>
            
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%: Html.ActionLink("Regresar a la pagina principal", "Index", "Home") %>
    </div>

</asp:Content>

